package com.example.hidesms.dto;

import android.graphics.Bitmap;
import android.graphics.BitmapFactory;

public class BlockCallItem {

	private int		id;
	private String	name;
	private String	number;
	private byte[]	image;
	private String	isComing;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getIsComing() {
		return isComing;
	}

	public void setIsComing(String isComing) {
		this.isComing = isComing;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getNumber() {
		return number;
	}

	public void setNumber(String number) {
		this.number = number;
	}

	public byte[] getImage() {
		return image;
	}

	public void setImage(byte[] image) {
		this.image = image;
	}

	public Bitmap getBitmapImage() {
		Bitmap bitmap = null;
		if (image != null) {
			bitmap = BitmapFactory.decodeByteArray(image, 0, image.length);
		}

		return bitmap;
	}

}
